package io.seata.sharding4.call;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.apache.shardingsphere.shardingjdbc.spring.boot.SpringBootConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * 添加 VM 参数：--add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED
 *
 * @author Administrator
 */
@EnableDubbo(scanBasePackages = "io.seata.sharding4.call")
@SpringBootApplication(scanBasePackages = {"io.seata.sharding4.call", "io.seata.sharding4.common"},
        exclude = {DataSourceAutoConfiguration.class, SpringBootConfiguration.class})
public class SeataSharding4BusinessApplication {
    public static void main(String[] args) {
        SpringApplication.run(SeataSharding4BusinessApplication.class, args);
    }
}

